/*
 * @Author       : Thyssen Wen
 * @Date         : 2022-09-14 13:57:55
 * @LastEditors  : Thyssen Wen
 * @LastEditTime : 2022-09-14 14:00:05
 * @Description  : test
 * @FilePath     : /cdesign-pattern/Template/test.cpp
 */
#include "AbstractDisplay.h"
#include "CharDisplay.h"
#include "StringDisplay.h"
#include <string>

int main(int argc, char *argv[])
{
    AbstractDisplay *d1 = new CharDisplay('H');
    AbstractDisplay *d2 = new StringDisplay("Hello, world.");
    AbstractDisplay *d3 = new StringDisplay("你好，世界。");
    d1->display();
    d2->display();
    d3->display();
    return 0;
}